
//var w2;var h2;
//var w=screen.width-296;var h=screen.height-318;
var w2;var h2;
var w=(screen.width-296);var h=w/1.55; //1618
var z=screen.width/screen.height
if(z>(4/3)){h=(4*h)/(3*z);w=(4*w)/(3*z);}

function out(f){

document.write('<object codeBase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0 classid=CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000 width="' + w + '" height="' + h + '" id="movie" ><param name="movie" value="' + f + '"> <PARAM NAME="quality" VALUE="high"><PARAM NAME="scale" VALUE="exactfit"><PARAM NAME="menu" VALUE="true"><embed src="' + f + '" width="' + w + '" height="' + h + '" quality="high"  swLiveConnect="false" scale="exactfit" menu="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>');}
function out2(f){document.write('<iframe src="' + f + '" width="' + w + '" height="' + h + '" frameborder="0"  scrolling="no"></iframe>');}
function jump(targ,selObj,restore){  
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function menu(l,c){document.write("-<option value='" + l + ".htm'>" + c + "</option>");}
function mene(l,c){document.write("-<option value='" + l + ".asp'>" + c + "</option>");}
function mens(l,c){document.write("-<option value='" + l + ".jsp'>" + c + "</option>");}
function mend(l,c){document.write("-<option value='" + l + ".cfm'>" + c + "</option>");}
	
	function oyun(e1,c1,f1,i1)
{

if(w2>0){w=w2;h=h2;}
     
	  var s="http://voxcast.oyunlar1.com/games/" + parseInt(f1, 16) + ".swf";

document.write('<object  id="mov" codeBase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0 classid=CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000 width=750 height=420 id="movie" ><param name="movie" value=> <PARAM NAME="quality" VALUE="high"><PARAM NAME="scale" VALUE="exactfit"><PARAM NAME="menu" VALUE="true"><embed  wmode="opaque" name="mov" src="' + i1 +  '" width=100% height=420 quality="high"  swLiveConnect="false" scale="exactfit" menu="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>');
						

} 
	





	function refreshProgress()
{
		

		
	var bar1 = document.getElementById("bar1");var bar = document.getElementById("bar");

	
var movie = getFlashMovieObject("mov");	
	

if(movie){
	if(movie.PercentLoaded()<100){bar1.innerHTML="<h2> % " + movie.PercentLoaded() + " &nbsp; </h2> "}
  else{bar1.innerHTML=""; /*document.getElementById("mov").style.visibility = "visible";*/}

 //bar.style.width=movie.PercentLoaded()+"px";
 }
 
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);

  } 
}	
setInterval("refreshProgress()",50)
